package com.iot.core.data.entity;

import com.iot.core.data.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.Date;


@Data
@Schema(name = "平台表",description = "")
@Table(value ="htplat")
public class HtPlat extends BaseEntity {

    @Schema(name = "父编号",description = "")
    private  Long  pid ;

    @Schema(name = "名称",description = "")
    @NotBlank(message = "名称不能为空")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  name ="";

    @Schema(name = "备注",description = "")
    private  String  memo ="";

}
